﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LyncServerExtension.PluginModel
{
    /// <summary>
    /// Interface to represent a loadable plugin.
    /// </summary>
    public interface IPlugin
    {
        /// <summary>
        /// Gets the id.
        /// </summary>
        string Id { get; }

        /// <summary>
        /// Gets the version.
        /// </summary>
        string Version { get; }

        /// <summary>
        /// Called when [load].
        /// </summary>
        /// <param name="context">The context.</param>
        void OnLoad(IPluginContext context);

        /// <summary>
        /// Called when [unload].
        /// </summary>
        void OnUnload();
    }
}
